package com.company.module.net.utils;


import com.google.gson.Gson;

import java.util.Map;

import okhttp3.MediaType;
import okhttp3.RequestBody;

/**
 * desc :
 * user : sixbing
 * time : 2019-04-13 16:17.
 * version : 1.0
 */

public class RequestBodyUtil {
    public static RequestBody getBody(Map<String, Object> params) {
        return RequestBody.create(MediaType.parse("application/json;charset=UTF-8"), new Gson().toJson(params));
    }
}
